import { mapActions, mapMutations } from 'vuex';
const ACTION_PREFIX = module.id

export const UPDATE_USER_RELEASE_COUNT = `${ACTION_PREFIX}/UPDATE_USER_RELEASE_COUNT`;
export const mutations = mapMutations({
	upDateUserReleaseCount: UPDATE_USER_RELEASE_COUNT,
})

// 微信登录
export const LOGIN = `${ACTION_PREFIX}/LOGIN`;

// 会员手机号绑定
export const WX_BIND_PHONE = `${ACTION_PREFIX}/WX_BIND_PHONE`;

export const GET_ACCOUNT_INFO = `${ACTION_PREFIX}/GET_ACCOUNT_INFO`;

// 获取发布数和积分
export const GET_MEMBER_EXPAND_INFO = `${ACTION_PREFIX}/GET_MEMBER_EXPAND_INFO`;

// 用户最近登录
export const USER_RECENT_COMING = `${ACTION_PREFIX}/USER_RECENT_COMING`;

// export default {
//   login: LOGIN,
//   wxBindPhone: WX_BIND_PHONE,
//   getAccountInfo: GET_ACCOUNT_INFO,
// }
export default mapActions({
  login: LOGIN,
  wxBindPhone: WX_BIND_PHONE,
  getAccountInfo: GET_ACCOUNT_INFO,
  getMemberExpandInfo: GET_MEMBER_EXPAND_INFO,
  userRecentComing: USER_RECENT_COMING
})